import { request } from "./request";

//获取城市信息
export function getCityData(data) {
  return request({
    url: `/wwgsp/getYsjcsjByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//本人交易数据
export function getJysjByMarketATy(data) {
  return request({
    url: `/wwgsp/getJysjByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//获取检测类别项目
export function getJcxmLbByMarketATy(data) {
  return request({
    url: `/wwgsp/getJcxmLbByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//项目检测分析当前
export function getJcxmByMarketATy(data) {
  return request({
    url: `/wwgsp/getJcxmByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//检测商品类别分析
export function getJcspLbByMarketATy(data) {
  return request({
    url: `/wwgsp/getJcspLbByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//疑似阳性数排行榜
export function getYsyxphbByMarketATy(data) {
  return request({
    url: `/wwgsp/getYsyxphbByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//溯源统计
export function getSYTJByMarketATy(data) {
  return request({
    url: `/wwgsp/getSYTJByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//使用农产品安全统计
export function getSYNCPByMarketATy(data) {
  return request({
    url: `/wwgsp/getSYNCPByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//疑似阳性风险预警
export function getYSYXFXYJByMarketATy(data) {
  return request({
    url: `/wwgsp/getYSYXFXYJByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//交易商品类别
export function getJysplbByMarketATy(data) {
  return request({
    url: `/wwgsp/getJysplbByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//检测项目分析
export function getJCXMFX(data) {
  return request({
    url: `/wwgsp/getJcxmByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

//检测品类占比
export function getJCPLZB() {
  return request({
    url: "/wwgsp/getJCPLZBByPFMarket",
    method: "post",
  });
}

//检测品类占比
export function getCDLYFXByPFMarket() {
  return request({
    url: "/wwgsp/getCDLYFXByPFMarket",
    method: "post",
  });
}

//食用农产品安全指数
export function getDYNCPByPFMarket() {
  return request({
    url: "/wwgsp/getDYNCPByPFMarket",
    method: "post",
  });
}

//食用农产品安全指数
export function getCDFXByMarketATy(data) {
  return request({
    url: `/wwgsp/getCDFXByMarketATy?marketId=${data.marketId}`,
    method: "post",
  });
}

export function getQJLbByMarketATy() {
  return request({
    url: `wwgsp/getQJLbByMarketATy`,
    method: "post",
  });
}
